//
//  SSSRecordOrderToOrderSearchCell.m
//  SSSMerchant
//
//  Created by 谢曦 on 2017/3/25.
//  Copyright © 2017年 xnxin. All rights reserved.
//

#import "SSSRecordOrderToRecordDailyDetailCell.h"
@interface SSSRecordOrderToRecordDailyDetailCell()
@property (weak, nonatomic) IBOutlet UILabel *timeLable;
@property (weak, nonatomic) IBOutlet UILabel *nameLable;
@property (weak, nonatomic) IBOutlet UILabel *phoneLable;
@property (weak, nonatomic) IBOutlet UIImageView *uploadTypeImageView;
@property (weak, nonatomic) IBOutlet UILabel *ratioLable;
@property (weak, nonatomic) IBOutlet UILabel *amountMoney;
@property (weak, nonatomic) IBOutlet UILabel *downlineMoney;
@end
@implementation SSSRecordOrderToRecordDailyDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=UITableViewCellSelectionStyleNone;
}

-(void)setModel:(SSSRecordOrderModel *)model{
    _model=model;
    _timeLable.text=model.time;
    _uploadTypeImageView.image=model.type==1?[UIImage imageNamed:@"icon_up2"]:[UIImage imageNamed:@"icon_up1"];
    
    _amountMoney.text=[NSString stringWithFormat:@"¥ %@",model.money];
    _downlineMoney.text=[NSString stringWithFormat:@"¥ %@",model.uploadMoney];
    _phoneLable.text=model.phone;
    _nameLable.text=model.name;
    _ratioLable.text=model.ratio;

}


@end
